using System.ComponentModel.DataAnnotations;
using AllIsWell.Core.Models;

namespace AllIsWell.Core.Tests.Models
{
    internal class ModelTests
    {
        protected static void ValidateModel(IModel model)
        {
            var destinyValidationContext = new ValidationContext(model, null, null);
            Validator.ValidateObject(model, destinyValidationContext);
        }
    }
}